/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.univcasa.db.persist;

import com.univcasa.db.model.ComptePersonnel;
import org.hibernate.Session;
import org.hibernate.Transaction;

/**
 *
 * @author issam
 */
public class PersistTest {

    public static void main(String[] args){

        Session session = HibernateUtil.getSessionFactory().openSession();
        Transaction tx = session.beginTransaction();
        ComptePersonnel compte = new ComptePersonnel("1453232", "Nom1", "prenom1", "ETAB", "P", "BH2222", "mail_perso" );
        session.save(compte);
        tx.commit();
        session.close();

    }

}
